﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Table</title>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all"/>
	<link rel="stylesheet" href="/static/css/global.css" media="all">
	<link rel="stylesheet" href="/static/plugins/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="/static/css/table.css"/>
</head>

<body>
<div class="admin-main">
	<blockquote class="layui-elem-quote">
		<a href="edit.html" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 添加
		</a>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>应用列表</legend>
		<div class="layui-field-box layui-form">
			<table class="layui-table admin-table">
				<thead>
				<tr>
					<th>应用名称</th>
					<th>应用标识</th>
					<th>负责人</th>
					<th>通知邮箱</th>
					<th>备注</th>
					<th>操作</th>
				</tr>
				</thead>
				<tbody id="content" templateLoad="/admin/app/list" template-id="tpl"></tbody>
			</table>
		</div>
	</fieldset>
</div>
<!--模板-->
<script type="text/html" id="tpl">
	{{# layui.each(d, function(index, item){ }}
	<tr>
		<td>{{ item.alias }}</td>
		<td>{{ item.name }}</td>
		<td>{{ item.master }}</td>
		<td>{{ item.notifyEmails }}</td>
		<td>{{ item.remarks }}</td>
		<td>
			<a href="./secret.html?dataloadurl=/admin/appSecret/{{ item.id }}" class="layui-btn layui-btn-mini">密钥管理</a>
			<a href="./edit.html?dataloadurl=/admin/app/{{ item.id }}" class="layui-btn layui-btn-mini">编辑</a>
			<a href="javascript:void(0);" class="J_confirmurl layui-btn layui-btn-danger layui-btn-mini" act-url="/admin/app/delete/{{ item.id }}">删除</a>
		</td>
	</tr>
	{{# }); }}
</script>

<script type="text/javascript" src="/static/plugins/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/common.js?v20180106?a=91"></script>
</body>

</html>